﻿CREATE TABLE [dbo].[surveyMailList](
	[MailListID] [int] IDENTITY(1,1) NOT NULL,
	[Name] [nvarchar](200) NOT NULL,
	[NodeID] [int] NOT NULL,
	[RowCreatedOn] [datetime] NOT NULL,
	[RowModifiedOn] [datetime] NOT NULL,
	
 CONSTRAINT [PK_MailList] PRIMARY KEY CLUSTERED 
(
	[MailListID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]


ALTER TABLE [dbo].[surveyMailList]  WITH CHECK ADD  CONSTRAINT [FK_surveyMailList_cmsMember] FOREIGN KEY([NodeId])
REFERENCES [dbo].[cmsMember] ([nodeId])
GO

ALTER TABLE [dbo].[surveyMailList] CHECK CONSTRAINT [FK_surveyMailList_cmsMember]
GO



